package project.DAO;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Service;
import project.DO.userDo;


import java.util.List;

@Mapper
@Service
public interface UserDAO {
    @Select("select * from user where username=#{username} and password=#{password}")
    public List<userDo> login(String username, String password);
    @Insert("insert into user(username,password) values (#{username},#{password})")
    public int register(Object username, Object password);
}
